/* 移除html/body样式 - 由base.html控制全局样式 */
.ai-assistant-container {
    width: 100%;
    height: calc(100vh - 120px); /* 减去导航栏高度 */
    position: relative;
    padding: 20px 0;
}

.maintain {
    width: 70vw;
    height: calc(100% - 60px); /* 留出输入框空间 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
}

.fixed-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: white;
    width: 70vw;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
    justify-content: center;
    z-index: 10;
    pointer-events: auto;
}

.input-box {
    padding: 10px;
    width: 60%;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.maintain #chat-container {
    width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    word-break: break-word;
}

.user-message {
    align-self: flex-end;
    background-color: #0084ff;
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-message {
    align-self: flex-start;
    background-color: #f5f5f5;
    border-bottom-left-radius: 4px;
}


.ai-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}